function main() {
    debugger;
    const self = this;


    let stallIdValue = self.$$("number_input_gwgapp").cValue;
    let holderIdValue = self.$$("single_select_2w97js").cValue;
    let stallUsePeriodTypeValue = self.$$("checkbox_efk5x1").cValue;
    let applyUseStartValue = self.$$("date_picker_83ajqw").cValue;
    let applyUseEndValue = self.$$("date_picker_5y6q9a").cValue;


    const requestData = {
        stallId: stallIdValue,
        holderId: holderIdValue,
        stallUsePeriodType: JSON.stringify(stallUsePeriodTypeValue.map(String)),
        applyUseStart: applyUseStartValue,
        applyUseEnd: applyUseEndValue
    };

    const jsonString = JSON.stringify(requestData);

    console.log(jsonString);
    submitStallApply(jsonString).then(res => {
        if(res && !res.hasError){
            const data = res.result;
            console.log(data);
            self.$message.success("预约申请成功！");


        } else {
            self.$message.warning(res.message);
        }

    })
}

function submitStallApply(jsonString) {
    return new Promise((resolve, reject) => {
        api.DATA_SOURCE_EXECUTE("ds_api:c4146080-fd31-4c7c-83e8-9b203f9a6205", "api", [], [], jsonString).then(res=>{
            console.log(res);
            if(res && !res.hasError){
                let resDatac = JSON.parse(res.result);
                resolve(resDatac);
            }else{
                reject(res);
            }
        })

    });

}
